/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Shop;

import java.io.Serializable;

/**
 *
 * @author ThanhTam
 */
public class TypeProduct implements Serializable{
    private int idType;
    private String nameType;
    
    public TypeProduct(){};
    public TypeProduct(int id, String name){
        this.idType = id;
        this.nameType = name;
    }
    public int getIdType() {
        return idType;
    }

    public void setIdType(int idType) {
        this.idType = idType;
    }

    public String getNameType() {
        return nameType;
    }

    public void setNameType(String nameType) {
        this.nameType = nameType;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TypeProduct other = (TypeProduct) obj;
        if (this.idType != other.idType) {
            return false;
        }
        if ((this.nameType == null) ? (other.nameType != null) : !this.nameType.equals(other.nameType)) {
            return false;
        }
        return true;
    }
    
    
}
